import 'package:auto_route/auto_route.dart';
import 'package:juming_test/config/app_router_path.dart';
import 'package:juming_test/module/domain/domain_filter/domain_filter.dart';
import 'package:juming_test/module/domain/domain_list/domain_list.dart';
import 'package:juming_test/module/discovery/index.dart';
import 'package:juming_test/module/home/home/home.dart';
import 'package:juming_test/module/home/kingkong_management/kingkong_management.dart';
import 'package:juming_test/module/message/index.dart';
import 'package:juming_test/module/mine/index.dart';
import 'package:juming_test/routes/app_router.gr.dart';

@AutoRouterConfig(replaceInRouteName: 'Screen|Page,Route')
class AppRouter extends RootStackRouter {
  @override
  List<AutoRoute> get routes => [
    AutoRoute(
      page: TabScaffold.page,
      path: '/',
      initial: true,
      children: [
        AutoRoute(page: HomeRoute.page, path: AppRouterPath.home),
        AutoRoute(page: MessageRoute.page, path: AppRouterPath.message),
        AutoRoute(page: DiscoveryRoute.page, path: AppRouterPath.discovery),
        AutoRoute(page: MineRoute.page, path: AppRouterPath.mine),
      ],
    ),
    AutoRoute(
      page: HomeKingkongManagementRoute.page,
      path: AppRouterPath.kingkongManagement,
    ),
    AutoRoute(page: DomainFilterRoute.page, path: AppRouterPath.domainFilter),
    AutoRoute(page: DomainListRoute.page, path: AppRouterPath.domainList),
  ];
}
